package com.springdoor.wx.api.mapper;

import com.springdoor.wx.api.entity.SprdGoodsBuyCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface SprdGoodsBuyCartMapper {

    public List<Map<String, Object>> findListByUserId(Long userId);

    public SprdGoodsBuyCart findCartBySkuId(SprdGoodsBuyCart sprdGoodsBuyCart);

    public Integer findBuyCartNum(Long userId);

    public int insertSprdGoodsBuyCart(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int updateSprdGoodsBuyCart(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int removeBuyCartBuCartId(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int deleteSprdGoodsBuyCartByUserId(Long userId);

    public int updateStoreSelStatus(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int updateAllGoodsSelStatus(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int updateGoodsSelStatus(SprdGoodsBuyCart sprdGoodsBuyCart);

    public int updateGoodsQuantity(SprdGoodsBuyCart sprdGoodsBuyCart);

}
